import Vue from 'vue'
import App from './App.vue'

import TypeNav from "@/components/TypeNav"
Vue.component(TypeNav.name, TypeNav)

// 引入仓库Vuex
import store from './store';

// 引入swiper的css样式
import "swiper/css/swiper.css"

// 引入全局轮播组件
import Carousel from "@/components/Carousel"
Vue.component(Carousel.name, Carousel)

// 读取mock
import "./mock/mockServe"


//引入路由
import router from './router'

new Vue({
    render: h => h(App),
    beforeCreate() {
      Vue.prototype.$bus = this;
    },
    // 注册仓库
    store,
    // 注册路由
    router
}).$mount('#app')